package cn.iocoder.yudao.module.diy.controller.admin.addon.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 装修插件新增/修改 Request VO")
@Data
public class AddonSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2533")
    private Long id;

    @Schema(description = "插件名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "插件名称不能为空")
    private String title;

    @Schema(description = "插件图标", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "插件图标不能为空")
    private String icon;

    @Schema(description = "插件标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "插件标识不能为空")
    private String addonKey;

    @Schema(description = "插件描述")
    private String addonDesc;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer addonStatus;

    @Schema(description = "插件地址", example = "https://www.iocoder.cn")
    private String addonUrl;

    @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作者不能为空")
    private String author;

    @Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "版本号不能为空")
    private String version;

    @Schema(description = "安装时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "安装时间不能为空")
    private LocalDateTime installTime;

    @Schema(description = "封面", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "封面不能为空")
    private String cover;

    @Schema(description = "插件类型app，addon", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "插件类型app，addon不能为空")
    private String type;

    @Schema(description = "插件支持的应用空表示通用插件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "插件支持的应用空表示通用插件不能为空")
    private String supportApp;

    @Schema(description = "是否加星", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否加星不能为空")
    private Integer isStar;

    @Schema(description = "编译端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编译端口不能为空")
    private String compile;

}